#include "Generate_C_std.h"

class Pattern_foreach_next : public Pattern
{
	bool match (Statement* that)
	{
		next = new Wildcard<Foreach_next>;
		return that->match (next);
	}

	void generate_code (Generate_C* gen)
	{
		INST (buf, "foreach_next",
			next->value->array, next->value->iter->value);
	}

protected:
	Wildcard<Foreach_next>* next;
};


CREATE(Pattern_foreach_next);
